const express = require('express');

const app = express();

app.get('/:id.html', (req, res) => {
    res.setHeader('content-type','text/html;charset=utf-8');
    //打印出参数
    console.log(req.params.id);
    res.end('商品详情');
});

app.listen(3000,() => {
    console.log('服务已经启动 3000端口正在监听...');
})

